package com.zengqingfa.designpattern.create.builder.standard;

/**
 *
 * @fileName: ConcreteBuilder
 * @author: zengqf3
 * @date: 2021-4-22 13:45
 * @description: 具体建造者
 */
public class ConcreteBuilder implements Builder {

   private Product product=new Product();

    @Override
    public void buidPart1() {
        System.out.println("构建part1");
        product.setPart1("part1");
    }

    @Override
    public void buidPart2() {
        System.out.println("构建part2");
        product.setPart2("part2");
    }

    @Override
    public Product getProduct() {
        return product;
    }
}
